Skip to content

[macOS 27] Fix missing menu icons. - #122717

Open
bruvzg wants to merge 1 commit into
godotengine:masterfrom
bruvzg:mac27_menu
Open

[macOS 27] Fix missing menu icons.#122717
bruvzg wants to merge 1 commit into
godotengine:masterfrom
bruvzg:mac27_menu

Conversation

@bruvzg

@bruvzg bruvzg commented Aug 22, 2026

Copy link
Copy Markdown
Member

What problem(s) does this PR solve?

  • Menu icons on macOS 27.

Additional information

Before:
Screenshot 2026-08-22 at 19 04 51

After:
Screenshot 2026-08-22 at 19 06 00

Comment on lines +588 to +590
if (@available(macOS 27.0, *)) {
menu_item.preferredImageVisibility = NSMenuItemImageVisibilityVisible;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering what prevents us to use the else to put the menu_item logic. Is there a macOS version that we still support that doesn't accept the @available format?

I'm trying to check the documentation on @available, but I can't find the specifics.

@bruvzg bruvzg Aug 24, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avaliable(macOS 27) and code inside will only compile when building with Xcode 27, which is in beta. The other branch will compile with any older SDK we support and use for official builds, but still act the same on macOS 27. So we can only keep it, but I would prefer to keep both, so cleaning up ifdefs will be easier once Xcode 27 is min supported version.

@adamscott adamscott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, other than my question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants